package com.reddys.rrp.enrollment.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;
import org.apache.struts.validator.ValidatorForm;

public class RegistrationForm extends ValidatorForm {
	
	private String name;
	
	private String address;
	
	private String email;
	
	private String dob;
	
	private String courseName;
	
	private String courseScheduleName;
	
	private String method;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getCourseScheduleName() {
		return courseScheduleName;
	}

	public void setCourseScheduleName(String courseScheduleName) {
		this.courseScheduleName = courseScheduleName;
	}
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDob() {
		return dob;
	}

	public void setDob(String dob) {
		this.dob = dob;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

/*	@Override
	public ActionErrors validate(ActionMapping mapping,HttpServletRequest request){
		ActionErrors errors = new ActionErrors();
		ActionMessages messages = new ActionMessages();
		if(name.isEmpty())
		{
			messages.add("name",new ActionMessage("errors.required","name"));
		}
		if(address.isEmpty())
		{
			messages.add("address",new ActionMessage("errors.required","address"));
		}
		errors.add(messages);
		return errors;
	}*/
	

}
